import request from '@/utils/request'

export function articleListApi (current, sorter) {
  return request.get('/h5/interview/query', {
    params: {
      current: current,
      pageSize: 10,
      sorter: sorter // weight_desc表示获取推荐数据 || null表示获取最新数据
    }
  })
}

export const getDetail = id =>
  request.get('/h5/interview/show', { params: { id } })

export const updataLikeAndCollect = data =>
  request.post('/h5/interview/opt', data)

export const getLikeAndCollect = params =>
  request.get('/h5/interview/opt/list', { params })
